package org.hackystat.devcathlon.engine.project;

import java.io.Serializable;

/**
 * This class contains the description of a Team Project.
 * @author Anthony Du
 * 
 */
public class TeamProject implements Serializable {
  /** Support Serialization. */
  private static final long serialVersionUID = 1L;
  /** Primary key id. */
  private Long id;
  /** Project name. */
  private String name;
  /** Project owner. */
  private String owner;
  
  /**
   * Default Team Project constructor.
   */
  public TeamProject() {
    // empty constructor.
  }
  
  /**
   * Project constructor.
   * @param name The project name.
   * @param owner The project owner.
   */
  public TeamProject(String name, String owner) {
    this.name = name;
    this.owner = owner;
  }
  
  /**
   * Returns the unique id.
   * @return the id
   */
  public Long getId() {
    return id;
  }

  /**
   * Sets the unique id.
   * @param id the id to set
   */
  protected void setId(Long id) {
    this.id = id;
  }
  
  /**
   * @return the name
   */
  public String getName() {
    return name;
  }
  
  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }
  
  /**
   * @return the owner
   */
  public String getOwner() {
    return owner;
  }
  
  /**
   * @param owner the owner to set
   */
  public void setOwner(String owner) {
    this.owner = owner;
  }
  
}
